package com.leps.nq.op.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.common.vo.PageVo;
import com.leps.nq.op.entity.OpBubbleReplenish;
import com.leps.nq.op.mapper.OpBubbleReplenishMapper;
import com.leps.nq.op.service.IOpBubbleReplenishService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leps.nq.op.vo.BubbleReplenishQueryModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 泡排补液日志表 服务实现类
 * </p>
 *
 * @author hex
 * @since 2022-06-22
 */
@Service
public class OpBubbleReplenishServiceImpl extends ServiceImpl<OpBubbleReplenishMapper, OpBubbleReplenish> implements IOpBubbleReplenishService {
    @Autowired
    OpBubbleReplenishMapper bubbleReplenishMapper;

    @Override
    public PageVo<OpBubbleReplenish> pageByQueryModel(BubbleReplenishQueryModel queryModel) {
        Page<OpBubbleReplenish> page = Page.of(queryModel.getPageNum(), queryModel.getPageSize());
        page = this.bubbleReplenishMapper.selectByQueryModel(page, queryModel);
        return PageVo.of(page);
    }
}
